package org.lztvn.elearning;
import org.lztvn.elearning.service.MailMail;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class App {
	   public static void main( String[] args )
	    {
	    	ApplicationContext context = 
	             new ClassPathXmlApplicationContext("applicationContext.xml");
	 
	    	MailMail mm = (MailMail) context.getBean("mailMail");
	        mm.sendMail("nguyen.manhdung33@gmail.com",
	    		   "nguyen.manhdung33@gmail.com",
	    		   "Testing123", 
	    		   "Testing only \n\n Hello Spring Email Sender");
	 System.out.println("===========test");
	    }
}
